Security News
ESLint is Now Language-Agnostic: Linting JSON, Markdown, and Beyond
ESLint has added JSON and Markdown linting support with new officially-supported plugins, expanding its versatility beyond JavaScript.
@poppinss/inspect
Advanced tools
Fork of object-inspect to add support for newlines, indentation and slight modifications to the output.
Convert Javascript datatypes to their string representation. Handles every in-built data type including.
This module will be re-written from scratch soon. So please, do not send any PR's for improvements. However, feel free to report issues and they will be picked up during re-write.
Install the package from npm registry as follows
npm install @poppinss/object-inspect
const { inspect } = require('@poppinss/inspect')
inspect({ foo: 'bar', bar: 'baz' })
const { stringify } = require('@poppinss/inspect')
stringify.html({ foo: 'bar', bar: 'baz' })
To the original object-inspect package. 90% of the code is still the same, we have just made opinionated changes to suit it better to our needs.
I didn't created a PR for the original package, since the modifications are very specific to serve our use case.
MIT
FAQs
Stringify Javascript values to a string or pretty print HTML
We found that @poppinss/inspect demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
ESLint has added JSON and Markdown linting support with new officially-supported plugins, expanding its versatility beyond JavaScript.
Security News
Members Hub is conducting large-scale campaigns to artificially boost Discord server metrics, undermining community trust and platform integrity.
Security News
NIST has failed to meet its self-imposed deadline of clearing the NVD's backlog by the end of the fiscal year. Meanwhile, CVE's awaiting analysis have increased by 33% since June.